<template>
  <div class="page">
    <!-- 子路由视图区域 -->
    <div class="content">
      <router-view></router-view>
    </div>
    <!-- 底部菜单 -->
    <div class="footer">
      <router-link class="item" to="/home">首页</router-link>
      <router-link class="item" to="/user_list">用户列表</router-link>
      <router-link class="item" to="/user">我的</router-link>
    </div>
  </div>
</template>

<script>
</script>

<style scoped>
.page{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}
.content{
  flex: 1;
}
.footer{
  height: 50px;
  line-height: 50px;
  display: flex;
  border-top: 1px solid #ECECEC;
}
.footer .item{
  flex: 1;
  text-align: center;
}
</style>
